﻿@{
        Layout = "~/Views/Shared/_PersionLayout.cshtml";
        ViewBag.Menu = "answer";
        if (string.Equals(ViewData["error"], "contains")){
            <div class="pos"><img src="~/images/images/pay_dian.jpg" /> <a href="#">会员中心</a> - 安全信息</div>
            <div class="form1" style="background:none;">
                <p style="margin:60px 0 0 0;" class="tc"><img src="~/images/images/safe_img1.jpg" /></p>
            </div>
   			@*<div class="tip">安全信息是申请密码找回，装备找回等服务的重要凭证，请务必填写并牢记；</div>*@
        }
        else
        {
            @section HeadJavaScript{
                <script src="~/Scripts/angular/base/angular.min.js" type="text/javascript"></script>
                <!--[if (IE 6)|(IE 7)]><script type="text/javascript" src="~/Scripts/angular/base/json2.js"></script><![endif]-->
                <script src="~/Scripts/angular/js/answer.js" type="text/javascript"></script>
                <script src="~/Scripts/angular/base/angular.autoload.js" type="text/javascript"></script>
            }
    <div class="pos"><img src="~/images/images/pay_dian.jpg" /> <a href="#">会员中心</a> - 安全信息</div>
        <div class="form1" style="background:none;">
            <form name="form" on-submit="submit()" onsubmit="return false;" ng-controller="Ctrl" ng-init="load({
                    A1: { msg: '请输入正确的答案！',error: '请输入正确的答案！',success:true}
                    ,A2: { msg: '请输入正确的答案！',error: '请输入正确的答案！',success:true}
                    ,A3: { msg: '请输入正确的答案！',error: '请输入正确的答案！',success:true}
                    ,submit:{false:'请正确填写安全信息',same:'安全问题重复',error:'系统异常，请联系我们'}
                });
                    questions=[
                        {value:'00002012070316122304_929047621',text:'我就读的第一所学校名称？'}
                        ,{value:'00002012070316122304_929047622',text:'我最喜欢的休闲运动是什么？'}
                        ,{value:'00002012070316122304_929047623',text:'我最喜欢的运动员是谁？'}
                        ,{value:'00002012070316122304_929047624',text:'我最喜欢的物品的名称？'}
                        ,{value:'00002012070316122304_929047625',text:'我最喜欢的歌曲？'}
                        ,{value:'00002012070316122304_929047626',text:'我最喜欢的食物？'}
                        ,{value:'00002012070316122304_929047627',text:'我最爱的人的名字？'}
                        ,{value:'00002012070316122304_929047628',text:'我最爱的电影？'}
                        ,{value:'00002012070316122304_929047629',text:'我妈妈的生日？'}
                    ];
                    submit.url = '/answer/new/@ViewData["code"]';
                    Q1 = questions[0];
                    Q2 = questions[1];
                    Q3 = questions[2];
                "
                >
            <table class="tab1" width="720">
                <tr>
                    <td width="115"><span class="txtr">安全问题一：</span> </td>
                    <td width="270">
                        <select class="text260" name="Q1" ng-model="Q1" ng-options="q.text for q in questions" required></select>
                     </td>
                    <td></td>
                </tr>
                <tr>
                    <td><span class="txtr">答案一：</span> </td>
                    <td>
                        <input class="text270" type="text" name="A1" ng-model="A1.value" ng-init="A1.input()" on-focus="A1.input()" on-blur="A1.validate();" required/>	                    
							
                    </td>
                    <td>
                        <span class="label2" ng-show="!A1.error&&!A1.success&&A1.msg" style="display:none;">{{A1.msg}}</span>
					    <span class="error" ng-show="A1.error" style="display:none;"><img src="~/images/images/error.jpg" /> {{A1.error}}</span>
						<span ng-show="A1.success" style="display:none;"><img src="~/images/images/right.jpg" /></span>
                    </td>
                </tr>
                <tr>
                    <td width="115"><span class="txtr">安全问题二：</span> </td>
                    <td width="270">
                         <select class=" text260" name="Q2" ng-model="Q2" ng-options="q.text for q in questions" required></select>
                        </td>
                    <td></td>
                </tr>
                <tr>
                    <td><span class="txtr">答案二：</span> </td>
                    <td>
                        <input class="text270" type="text" name="A2" ng-model="A2.value" ng-init="A2.input()" on-focus="A2.input()" on-blur="A2.validate();" required/>
						
                    </td>
                    <td>
                        <span class="label2" ng-show="!A2.error&&!A2.success&&A2.msg" style="display:none;">{{A2.msg}}</span>
					    <span class="error" ng-show="A2.error" style="display:none;"><img src="~/images/images/error.jpg" /> {{A2.error}}</span>
						<span ng-show="A2.success" style="display:none;"><img src="~/images/images/right.jpg" /> </span>
                    </td>
                </tr>
                <tr>
                    <td width="115"><span class="txtr">安全问题三：</span> </td>
                    <td width="270">
                         <select class="text260" name="Q3" ng-model="Q3" ng-options="q.text for q in questions" required></select>
                     </td>
                    <td></td>
                </tr>
                <tr>
                    <td><span class="txtr">答案三：</span> </td>
                    <td>
                        <input class="text270" type="text" name="A3" ng-model="A3.value" ng-init="A3.input()" on-focus="A3.input()" on-blur="A3.validate();" required/>
							
                    </td>
                    <td>
                        <span class="label2" ng-show="!A3.error&&!A3.success&&A3.msg" style="display:none;">{{A3.msg}}</span>
					    <span class="error" ng-show="A3.error" style="display:none;"><img src="~/images/images/error.jpg" /> {{A3.error}}</span>
						<span ng-show="A3.success" style="display:none;"><img src="~/images/images/right.jpg" /></span>
                    </td>
                </tr>
                <tr ng-show="submit.error" style="display:none">
                    <td></td>
                    <td colspan="2">
                         <span class="error">{{submit.error}}</span>
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td align="center">
                        <input type="submit" value="" class="safe_tj" />
                    </td>
                    <td></td>
                </tr>
            </table>
				
		</form>
	 	</div>
        <p style="margin:20px 0 0 40px;" class="c999">安全信息是申请密码找回，装备找回等服务的重要凭证，请务必填写并牢记；</p>
    
        }
}

